package com.casstime.ec.cloud.meeting.web.config;

import javax.annotation.PostConstruct;

import com.casstime.ec.cloud.meeting.web.ftl.template.JSONFtlUtil;
import com.casstime.ec.cloud.meeting.web.ftl.template.MarketCurrency;
import com.casstime.ec.cloud.meeting.web.ftl.template.MarketMoneyUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FreemarketTemplateConfig {
	@Autowired
	protected freemarker.template.Configuration configuration;
	
	@PostConstruct
	public void setSharedVariable() {
		configuration.setSharedVariable("marketCurrency", new MarketCurrency());
		configuration.setSharedVariable("marketMoneyUtil", new MarketMoneyUtil());
		configuration.setSharedVariable("JSONFtlUtil", new JSONFtlUtil());
	}
}
